<template>
    <p>子组件1</p>
</template>
<script setup lang="ts">
import { onUnmounted } from 'vue'

onUnmounted(() => {
    console.log('子组件1被卸载')
})
</script>